home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / gnu / othergnu / groff.zoo / atari-groff.diff next >
Text File  |  1992-05-10  |  36KB  |  1,236 lines

  1. diff -rc2N groff-1.05/Makefile groff-1.05.atari/Makefile
  2. *** groff-1.05/Makefile    Sat May  9 15:42:02 1992
  3. --- groff-1.05.atari/Makefile    Sat May  9 22:48:08 1992
  4. ***************
  5. *** 1,5 ****
  6.   #Copyright (C) 1989, 1990, 1991 Free Software Foundation, Inc.
  7.   #     Written by James Clark (jjc@jclark.com)
  8. - #
  9.   #This file is part of groff.
  10.   #
  11. --- 1,4 ----
  12. ***************
  13. *** 123,130 ****
  14.   
  15.   # Uncomment the next line if you have vfork().
  16. ! D2=#-DHAVE_VFORK
  17.   
  18.   # Uncomment the next line if you have sys_siglist[].
  19. ! D3=#-DHAVE_SYS_SIGLIST
  20.   
  21.   # Uncomment the next line if you have the mmap() system call (and you
  22. --- 122,129 ----
  23.   
  24.   # Uncomment the next line if you have vfork().
  25. ! D2=-DHAVE_VFORK
  26.   
  27.   # Uncomment the next line if you have sys_siglist[].
  28. ! D3=-DHAVE_SYS_SIGLIST
  29.   
  30.   # Uncomment the next line if you have the mmap() system call (and you
  31. ***************
  32. *** 133,137 ****
  33.   
  34.   # Uncomment the next line if you have the rename() system call.
  35. ! D5=#-DHAVE_RENAME
  36.   
  37.   # Uncomment the next line if the argument to localtime() is a long*
  38. --- 132,136 ----
  39.   
  40.   # Uncomment the next line if you have the rename() system call.
  41. ! D5=-DHAVE_RENAME
  42.   
  43.   # Uncomment the next line if the argument to localtime() is a long*
  44. ***************
  45. *** 141,145 ****
  46.   # Uncomment the next line if wait is declared by your C++ header files
  47.   # to take an argument of type union wait *.
  48. ! D7=#-DHAVE_UNION_WAIT
  49.   
  50.   # Uncoment the next line if your C++ header files declare a type pid_t
  51. --- 140,144 ----
  52.   # Uncomment the next line if wait is declared by your C++ header files
  53.   # to take an argument of type union wait *.
  54. ! D7=-DHAVE_UNION_WAIT
  55.   
  56.   # Uncoment the next line if your C++ header files declare a type pid_t
  57. ***************
  58. *** 155,159 ****
  59.   # Uncomment the next line if <sys/wait.h> should not be included
  60.   # when using wait().  Use this with the libg++ header files.
  61. ! D10=-DNO_SYS_WAIT_H
  62.   
  63.   # Uncomment the next line if you C++ compiler requires delete [n] rather
  64. --- 154,158 ----
  65.   # Uncomment the next line if <sys/wait.h> should not be included
  66.   # when using wait().  Use this with the libg++ header files.
  67. ! D10=#-DNO_SYS_WAIT_H
  68.   
  69.   # Uncomment the next line if you C++ compiler requires delete [n] rather
  70. ***************
  71. *** 185,189 ****
  72.   # MALLOCFLAGS=-DUSG
  73.   # Use this with SunOS 4.1 and 4.1.1.
  74. ! MALLOCFLAGS=-DBSD -DSUNOS_LOCALTIME_BUG
  75.   
  76.   # Comment this out if the GNU malloc gives you problems, or if you would
  77. --- 184,189 ----
  78.   # MALLOCFLAGS=-DUSG
  79.   # Use this with SunOS 4.1 and 4.1.1.
  80. ! #MALLOCFLAGS=-DBSD -DSUNOS_LOCALTIME_BUG
  81. ! MALLOCFLAGS=-DBSD
  82.   
  83.   # Comment this out if the GNU malloc gives you problems, or if you would
  84. ***************
  85. *** 211,217 ****
  86.   
  87.   # CC is the C++ compiler
  88. ! CC=g++
  89.   # This is the flag that tells the C++ compiler to treat a .c file as C++.
  90. ! C++LANG_FLAG=
  91.   # I'm told that -fno-inline is needed on a 68030-based Apollo
  92.   # CC=g++ -fno-inline
  93. --- 211,217 ----
  94.   
  95.   # CC is the C++ compiler
  96. ! # CC=g++
  97.   # This is the flag that tells the C++ compiler to treat a .c file as C++.
  98. ! # C++LANG_FLAG=
  99.   # I'm told that -fno-inline is needed on a 68030-based Apollo
  100.   # CC=g++ -fno-inline
  101. ***************
  102. *** 218,223 ****
  103.   
  104.   # Use this with gcc/g++ version 2.
  105. ! # CC=gcc
  106. ! # C++LANG_FLAG=-xc++
  107.   
  108.   # OLDCC is the C compiler.
  109. --- 218,223 ----
  110.   
  111.   # Use this with gcc/g++ version 2.
  112. ! CC=gcc
  113. ! C++LANG_FLAG=-xc++
  114.   
  115.   # OLDCC is the C compiler.
  116. ***************
  117. *** 225,231 ****
  118.   
  119.   PROFILE_FLAG=
  120. ! DEBUG_FLAG=-g
  121.   # With gcc/g++ 2.0 on a sparc, -O works better than -O2.
  122. ! OPTIMIZE_FLAG=-O
  123.   WARNING_FLAGS=#-Wall -Wcast-qual -Wwrite-strings
  124.   
  125. --- 225,232 ----
  126.   
  127.   PROFILE_FLAG=
  128. ! DEBUG_FLAG=
  129.   # With gcc/g++ 2.0 on a sparc, -O works better than -O2.
  130. ! #OPTIMIZE_FLAG=-O
  131. ! OPTIMIZE_FLAG=-O2
  132.   WARNING_FLAGS=#-Wall -Wcast-qual -Wwrite-strings
  133.   
  134. ***************
  135. *** 245,253 ****
  136.   LDFLAGS=$(PROFILE_FLAG) $(DEBUG_FLAG) $(XLDFLAGS)
  137.   # Libraries needed for linking C++ programs.
  138. ! LIBS=
  139.   # Libraries needed for linking C++ programs that use libm.a.
  140. ! MLIBS=$(LIBS) -lm
  141.   
  142. ! AR=ar
  143.   
  144.   # Define RANLIB to be empty if you don't have ranlib.
  145. --- 246,255 ----
  146.   LDFLAGS=$(PROFILE_FLAG) $(DEBUG_FLAG) $(XLDFLAGS)
  147.   # Libraries needed for linking C++ programs.
  148. ! LIBS=-lg++
  149.   # Libraries needed for linking C++ programs that use libm.a.
  150. ! #MLIBS=$(LIBS) -lm
  151. ! MLIBS=$(LIBS) 
  152.   
  153. ! AR=gcc-ar
  154.   
  155.   # Define RANLIB to be empty if you don't have ranlib.
  156. Binary files groff-1.05/gendef and groff-1.05.atari/gendef differ
  157. diff -rc2N groff-1.05/groff.c groff-1.05.atari/groff.c
  158. *** groff-1.05/groff.c    Wed Oct 30 12:12:48 1991
  159. --- groff-1.05.atari/groff.c    Sat May  9 22:24:26 1992
  160. ***************
  161. *** 45,50 ****
  162.   #else
  163.   typedef int PID_T;
  164. ! #endif
  165.   #ifdef HAVE_UNION_WAIT
  166.   typedef union wait WAIT_STATUS_T;
  167. --- 45,49 ----
  168.   #else
  169.   typedef int PID_T;
  170. ! #endif // HAVE_PID_T
  171.   #ifdef HAVE_UNION_WAIT
  172.   typedef union wait WAIT_STATUS_T;
  173. diff -rc2N groff-1.05/lib/Makefile groff-1.05.atari/lib/Makefile
  174. *** groff-1.05/lib/Makefile    Thu Aug 22 12:32:00 1991
  175. --- groff-1.05.atari/lib/Makefile    Sat May  9 20:24:40 1992
  176. ***************
  177. *** 34,38 ****
  178.       ptable.o font.o fontfile.o nametoindex.o filename.o lineno.o \
  179.       progname.o lf.o change_lf.o version.o tmpfile.o \
  180. !     $(FMOD) $(STRTOL) $(GETCWD)
  181.   SOURCES=new.c itoa.c strerror.c error.c errarg.c fatal.c prime.c \
  182.       strsave.c matherr.c fmod.c assert.c iftoa.c tmpfile.c getcwd.c \
  183. --- 34,39 ----
  184.       ptable.o font.o fontfile.o nametoindex.o filename.o lineno.o \
  185.       progname.o lf.o change_lf.o version.o tmpfile.o \
  186. !     $(FMOD) $(STRTOL) $(GETCWD) getopt.o getopt1.o
  187.   SOURCES=new.c itoa.c strerror.c error.c errarg.c fatal.c prime.c \
  188.       strsave.c matherr.c fmod.c assert.c iftoa.c tmpfile.c getcwd.c \
  189. ***************
  190. *** 39,42 ****
  191. --- 40,44 ----
  192.           string.c cset.c cmap.c ptable.c font.c fontfile.c nametoindex.c \
  193.           filename.c lineno.c progname.c lf.c change_lf.c version.c \
  194. +     getopt.c getopt1.o getopt.h \
  195.       assert.h cset.h cmap.h errarg.h error.h font.h getpagesize.h \
  196.       lib.h ptable.h stringclass.h
  197. ***************
  198. *** 55,58 ****
  199. --- 57,66 ----
  200.       @echo const char \*version_string = \"`cat ../VERSION`\"\; >$@
  201.   
  202. + getopt.o: getopt.c getopt.h
  203. +     $(OLDCC) $(OLDCFLAGS) -c getopt.c
  204. + getopt1.o: getopt1.c getopt.h
  205. +     $(OLDCC) $(OLDCFLAGS) -c getopt1.c
  206.   malloc.o: malloc.c getpagesize.h
  207.       $(OLDCC) $(OLDCFLAGS) $(MALLOCFLAGS) -c malloc.c
  208. ***************
  209. *** 84,88 ****
  210.   tmpfile.o: lib.h errarg.h error.h
  211.   
  212. ! fontpath.h: FORCE
  213.       @$(SHELL) ../gendef $@ "FONTPATH=\"$(FONTPATH)\""
  214.   
  215. --- 92,98 ----
  216.   tmpfile.o: lib.h errarg.h error.h
  217.   
  218. ! #fontpath.h: FORCE
  219. ! #    @$(SHELL) ../gendef $@ "FONTPATH=\"$(FONTPATH)\""
  220. ! fontpath.h: 
  221.       @$(SHELL) ../gendef $@ "FONTPATH=\"$(FONTPATH)\""
  222.   
  223. diff -rc2N groff-1.05/lib/getopt.c groff-1.05.atari/lib/getopt.c
  224. *** groff-1.05/lib/getopt.c
  225. --- groff-1.05.atari/lib/getopt.c    Sat May  9 19:25:24 1992
  226. ***************
  227. *** 0 ****
  228. --- 1,595 ----
  229. + /* Getopt for GNU.
  230. +    Copyright (C) 1987, 1989, 1990 Free Software Foundation, Inc.
  231. + This program is free software; you can redistribute it and/or modify
  232. + it under the terms of the GNU General Public License as published by
  233. + the Free Software Foundation; either version 2 of the License, or
  234. + (at your option) any later version.
  235. + This program is distributed in the hope that it will be useful,
  236. + but WITHOUT ANY WARRANTY; without even the implied warranty of
  237. + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  238. + GNU General Public License for more details.
  239. + You should have received a copy of the GNU General Public License
  240. + along with this program; if not, write to the Free Software
  241. + Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  242. + #ifdef __STDC__
  243. + #define CONST const
  244. + #else
  245. + #define CONST
  246. + #endif
  247. + /* This version of `getopt' appears to the caller like standard Unix `getopt'
  248. +    but it behaves differently for the user, since it allows the user
  249. +    to intersperse the options with the other arguments.
  250. +    As `getopt' works, it permutes the elements of `argv' so that,
  251. +    when it is done, all the options precede everything else.  Thus
  252. +    all application programs are extended to handle flexib